package com.wxproject.demo.Controller.Article;

import com.wxproject.demo.Common.lang.ResultBody;
import com.wxproject.demo.Service.UserFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zqf
 * @date 2021/4/17 14:41
 * @description
 */

/**
 * 首页获得轮播图
 */
@RestController
public class IndexController {
    @Autowired
    private UserFileService userFileService;
    //首页获得所有轮播图
    @GetMapping("/getCarouselImg")
    public ResultBody getCarouselImg(){
        return ResultBody.ok().data("CarouseImg",userFileService.getCarouselImg());
    }
}
